#include "DepthFirstSearch.h"
#include "Graph.h"
void DepthFirstSearch::Visit(int i, int Label)
{
	cLabel[i] = Label;
	
	for (int j = 0; j < Matrix.size(); j++)
	{
		if (cLabel[j] == 0)
		{
			if (Matrix[i][j] != '0')
				Visit(j, Label);

		}
	}
}